package com.hcm.sk.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hcm.sk.pojo.User;
import com.hcm.sk.vo.LoginVo;
import com.hcm.sk.vo.ResponseBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hcm
 * @since 2021-01-25
 */
public interface IUserService extends IService<User> {

    ResponseBean doLogin(LoginVo loginVo, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse);

    /**
     * 根据cookie获取用户
     * @param userTiket
     * @return
     */
    User getUserByCookie(String userTiket , HttpServletRequest httpServletRequest , HttpServletResponse httpServletResponse);
}
